/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.dcpApplication.question2.composition.compositionImpl;

import java.util.Scanner;
import za.ac.cput.dcpApplication.question2.composition.ComputerComp;

/**
 *
 * @author spheshie
 */
public class Multimedia implements ComputerComp {
    Scanner input = new Scanner(System.in);
    private int cdRomSpeed;
  
    public Multimedia(int sp, int pr, int cdRom)
    {
        
        cdRomSpeed = cdRom;
    }

    public Multimedia() {
        throw new UnsupportedOperationException("Not yet implemented");
    }
  
    public int getCdRomSpeed()
    {
        return cdRomSpeed;
    }
  
    public void setCdRomSpeed(int cdrom)
    {
        cdRomSpeed = cdrom;
    }
    @Override
    public String toString()
    {
        return super.toString() + "cd-rom speed is:" + cdRomSpeed;
    }

    @Override
    public int speed(int typeProcessor) {
        return typeProcessor;
    }

    @Override
    public int processor(int powerSpeed) {
        System.out.println("Enter cdrom speed: "); 
        return powerSpeed  = input.nextInt();
    }
    
}
